<template>
    <div class="error_404">
        <img src="../../assets/images/error_images/404.png" alt="">
        <div class="error_btn"><el-button type="primary" size="default" @click="goHome">返回首页</el-button>
        </div>

    </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router';
let $router=useRouter()
const goHome=()=>{
    $router.push('/home')
}
</script>

<style scoped lang="scss">
.error_404 {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    img {
        width: 800px;
        height: 400px;
    }

    .error_btn {
    position: relative;
       top: 300px;
        
    }

}
</style>